/*
 * @Author: bear
 * @Date: 2022-08-08 14:29:32
 * @LastEditors: bear
 * @LastEditTime: 2022-08-10 18:11:27
 * @Description: your project
 * @version: 1.0
 */
const router = require('./routerConfig');
router.get('/login', function (ctx, next) {
    const { username, passwrod } = ctx.request.query // 从上下文的 request 对象中获取
    if(username == 'bear' && passwrod == '123'){
        ctx.body = `获取登录信息======用户名:${username};密码:${passwrod}`
    }else{
        ctx.body = `获取登录信息======用户名:${username};密码:${passwrod} == 登录失败`
    }
})
module.exports = router;